<script lang="ts" setup>
import useVideo from '@renderer/componsables/useVideo'
import useCompress from '@renderer/componsables/useCompress'
const { removeAllFile, resetAllVideo } = useVideo()
const { isRun } = useCompress()
function stop() {
  window.api.stop()
}
</script>

<template>
  <main class="flex justify-center">
    <el-button type="primary" size="default" @click="stop">停止转码</el-button>
    <el-button type="danger" size="default" :disabled="isRun" @click="removeAllFile">删除全部</el-button>
    <el-button type="warning" size="default" :disabled="isRun" @click="resetAllVideo">重置视频</el-button>
  </main>
</template>

<style scoped></style>
